package homework_03.home_12;

import java.util.Scanner;

public class HomeWork_12 {
    /*输入一个年份，判断这个年份是否是闰年。*/
    public static void main(String[] args) {
        int a;
        Scanner input=new Scanner(System.in);
        System.out.println("请输入年份：");
        a=input.nextInt();
        if(a%4==0&&a%100!=0){
            System.out.println(a+"是闰年。");
        }else if(a%400==0){
            System.out.println(a+"是闰年。");
        }
        else {
            System.out.println(a+"不是闰年。");
        }
    }
}
